import request from "./Http";

/**
 * 手机验证码
 * @param {number} phone 手机号码phone 
 */
export function getCaptcha(params){
    return request({
        url:"/captcha/sent",
        method:"get",
        params
    })
}

/**
 * 验证码验证
 * @param {number} phone 手机号码phone 
 * @param {number} captcha 验证码
 */
export function getCaptchaVerify(params){
    return request({
        url:"/captcha/verify",
        method:"get",
        params
    })
}
/**
 * 验证码验证
 * @param {number} phone 手机号码phone 
 * @param {number} password 密码
 */
export function getCellphone(params){
    return request({
        url:"/login/cellphone",
        method:"get",
        params
    })
}